package com.itheima.Jiuye09;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class MapTest {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        map.put("王五","小花");
        map.put("赵六","小翠");
        map.put("李四","小芳");
        map.put("老孙","翠花");
        Set<String> setkey = map.keySet();
        for (String s : setkey) {
            String s1 = map.get(s);
            System.out.println(s+"--"+s1);
        }
    }
}
